class StringToChar
	{
	char[] convertStringToChar(String s)
		{
		char a[] = new char[s.length()+1];
		for(int i =0;i<s.length();i++)
			a[i]=s.charAt(i);
		return a;
		}
		
	char[] convertStringToCharArray(String s)
		{
		char a[] = new char[s.length()];
		a = s.toCharArray();
		return a;
		}	
	public static void main(String args[])
		{
		StringToChar stc = new StringToChar();
		String s = "Be your own Boss";
		char a[] = stc.convertStringToCharArray(s); //stc.convertStringToChar(s);
		System.out.println("String is : " + s);
		System.out.print("Array of characters is : ");
		for(int i=0; i<a.length; i++) //a[i] != '\0'
			System.out.print("[" + a[i] + "] ");
		}
	}